<?php

/**
 * EMail form.
 *
 * @package    tfe
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class EMailForm extends BaseEMailForm
{
  /**
   * @see EntiteTexteForm
   */
  public function configure()
  {
    parent::configure();
    unset($this['type']);
    $this->widgetSchema['id_contact'] = new sfWidgetFormInputHidden();
    $this->widgetSchema['valeur']->setOption('label',"Adresse");
    $this->validatorSchema['valeur'] = new sfValidatorEmail(array('required'=>false));
    $this->validatorSchema['valeur']->setMessage('invalid','L\'adresse n\'est pas au bon format');
  }
}
